﻿<%@ Page Language="C#" MasterPageFile="~/Masterpage/Admin.master" AutoEventWireup="true" CodeFile="addpublicdish.aspx.cs" Inherits="Admin_publicdish_addpublicdish" Title="SundayWish - 添加经典食谱" %>

<asp:Content ID="Content1" ContentPlaceHolderID="pagecontent" runat="Server">
    <div class="page_head">
        <div class="page_head_link">
            <a href="privatedishlist.aspx">返回经典食谱列表</a></div>
    </div>
    <div class="page_content">
        <table width=100%>
            <tr>
                <td>名称<br /><asp:TextBox ID="tbDishName" runat="server"></asp:TextBox></td>
                    
            </tr>
            <tr>
                <td>分类<br /><asp:DropDownList ID="ddlKind" runat="server">
                <asp:ListItem Text="热菜" Value="热菜"></asp:ListItem>
                <asp:ListItem Text="冷菜" Value="冷菜"></asp:ListItem>
                <asp:ListItem Text="汤" Value="汤"></asp:ListItem>
                <asp:ListItem Text="面食" Value="面食"></asp:ListItem>
                <asp:ListItem Text="饭食" Value="饭食"></asp:ListItem>
                <asp:ListItem Text="点心" Value="点心"></asp:ListItem>
                    </asp:DropDownList></td>

            </tr>
            <tr>
                <td>原材料<br /><asp:TextBox ID="tbMaterial" runat="server" TextMode="MultiLine" 
                        Width=500px Height=200px></asp:TextBox></td>
            </tr>
            <tr>
                <td>做法<br /><asp:TextBox ID="tbStep" runat="server" TextMode="MultiLine" Width=500px Height=200px></asp:TextBox></td>
            </tr>
            <tr>
                <td>介绍<br /><asp:TextBox ID="tbIntroduction" runat="server" TextMode="MultiLine" Width=500px Height=200px></asp:TextBox></td>
            </tr>
            <tr>
                <td>图片<br /><asp:FileUpload ID="attachment_upload" runat="server" CssClass="attach" />
                <asp:Button ID="btnupload" runat="server" Text="上传" OnClick="btnupload_Click" />
                <asp:Button ID="Button2" runat="server" Text="撤销" OnClick="btnupload_Cancel" />
                <asp:Label ID="lbimg" runat="server" Text="defaultimg.gif" Visible=false></asp:Label></td>
            </tr>
            <tr>
                <td><asp:Image runat="server" ImageUrl="~/image/defaultimg.gif" ID="pic"/></td>
            </tr>
        </table>
        <asp:Button ID="Button1" runat="server" Text="添加" onclick="Button1_Click"/>
    </div>
</asp:Content>
